import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class Sample
{

	void db()
	{
		Connection conn = null;
		PreparedStatement ps = null;
		ResultSet rs = null;

		try
		{

		}
		catch (Exception ex)
		{

		}
		finally
		{
			try
			{
				if (conn != null)
				{
					conn.close();
					conn = null;
				}
				if (ps != null)
				{
					ps.close();
					ps = null;
				}
				if (rs != null)
				{
					rs.close();
					rs = null;
				}
			}
			catch (Exception e)
			{
				e.printStackTrace();
			}
		}
	}
}
